package kr.hkit.androidcomplete02;

import kr.hkit.androidcomplete02.ch01.ch01Main;
import kr.hkit.androidcomplete02.ch01.ch02Main;
import kr.hkit.androidcomplete02.ch03.ch03Main;
import kr.hkit.androidcomplete02.ch04.ch04Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ActivityMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.main_btn01:
			intent = new Intent(this, ch01Main.class);
			break;
		case R.id.main_btn02:
			intent = new Intent(this, ch02Main.class);
			break;
		case R.id.main_btn03:
			intent = new Intent(this, ch03Main.class);
			break;
		case R.id.main_btn04:
			intent = new Intent(this, ch04Main.class);
			break;
		}
		startActivity(intent);

	}
}
